constraints: Make internal consistency required
authorMatthias Clasen <mclasen@redhat.com>
Wed, 26 Jun 2019 02:30:31 +0000 (02:30 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 30 Jun 2019 22:42:44 +0000 (23:42 +0100)
The relations between left, right, width
and top, bottom, height are required for
internal consistency. It doesn't make sense
to ever drop these.

Changing the strength of these relations makes
my systems behave much more stable.

gtk/gtkconstraintlayout.c

index ac07219d4f0928f41373d94788f0e5a2d87dd954..390149fde2877920ac082a82e2979ca7e39d7c62 100644 (file)
@@ -222,7 +222,7 @@ get_child_attribute (GtkConstraintLayoutChild *self,
 
         gtk_constraint_solver_add_constraint (solver,
                                               res, GTK_CONSTRAINT_RELATION_EQ, expr,
-                                              GTK_CONSTRAINT_WEIGHT_MEDIUM);
+                                              GTK_CONSTRAINT_WEIGHT_REQUIRED);
       }
       break;
 
@@ -244,7 +244,7 @@ get_child_attribute (GtkConstraintLayoutChild *self,
 
         gtk_constraint_solver_add_constraint (solver,
                                               res, GTK_CONSTRAINT_RELATION_EQ, expr,
-                                              GTK_CONSTRAINT_WEIGHT_MEDIUM);
+                                              GTK_CONSTRAINT_WEIGHT_REQUIRED);
       }
       break;